package com.wtwd.device.dao;

import com.wtwd.device.model.entity.BloodPressureRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author mjy
 * @date 2021/09/03
 * @description
 */
@Mapper
public interface BloodPressureRecordMapper {
    List<BloodPressureRecord> getDaysBloodPressureRecordList(@Param("deviceId") Long deviceId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<BloodPressureRecord> getMonthBloodPressureRecordList(@Param("deviceId") Long deviceId,@Param("month") String month);

    BloodPressureRecord getBloodPressureRecordByDeviceIdAndTime(@Param("deviceId") Long deviceId,@Param("time") String time);

    Integer addBloodPressureRecord(BloodPressureRecord bloodPressureRecord);

    Integer clearBloodPressureRecordByDate(@Param("date") String date);

    Integer deletePressureRecordByDeviceId(@Param("id") Long id);
}
